import {get,post} from "./http"

//分类
export const reqgetcate=()=>get("/api/getcate");
//轮播
export const reqgetbanner=()=>get("/api/getbanner");

//注册
export const reqregister=(params)=>post("/api/register",params)
//登录
export const reqlogin=(params)=>post("/api/login",params)
//新人专享
export const reqgetnew=()=>get("/api/getnew");
//分类商品
export const reqgetgoods=(params)=>get("/api/getgoods",params);
//七.获取商品信息首页
export const reqgetindexgoods=()=>get("/api/getindexgoods");
//万人团
export const reqgetgroupon=()=>get("/api/getgroupon");

//商品详情
export const reqgetgoodsinfo=(params)=>get("/api/getgoodsinfo",params);
//秒杀
export const reqgetseckill=()=>get("/api/getseckill");

//添加购物车
export const reqcartadd = (p) => post("/api/cartadd", p);
//购物车列表
export const reqcartlist = (p) => get("/api/cartlist", p);
//购物车添加
export const reqcartdelete=(params)=>post("/api/cartdelete",params)
//购物车修改
export const reqcartedit=(params)=>post("/api/cartedit",params)